function Rem() {
   var docEl = document.documentElement,
   oSize = docEl.clientWidth / 7.5;
   if (oSize > 100) {
   oSize = 100; 
}
   docEl.style.fontSize = oSize + 'px';
}
window.addEventListener('resize', Rem, false);
Rem();

$(function(){
	var swiper = new Swiper('.topBanner', {
        pagination: '.swiper-pagination',
        paginationClickable: true,
        autoplayDisableOnInteraction: false,
        autoplay: 2500
    });
    
    var xswiper1 = new Swiper('.You-banner-1', {
        pagination: '.swiper-pagination',
        paginationClickable: true
    });
	$('.fx-sort li').on('click',function(){
		if($(this).hasClass('on')){
			$(this).removeClass('on');
			$(this).children('.dropdown').slideUp();
		}else{
			$(this).addClass('on');
			$(this).children('.dropdown').slideDown();
		}
	});
	
	$('.btn-sc').on('click',function(){
		if($(this).hasClass('like')){
			$(this).removeClass('like');
		}else{
			$(this).addClass('like');
		}
	});
	
	$('#btn-qrzf').on('click',function(){
		$('.blackbg').fadeIn();
		$('.tczf').addClass('open');
	});
	$('.tczf .close ,.blackbg').on('click',function(){
		$('.blackbg').fadeOut();
		$('.tczf').removeClass('open');
	});
	
	
})